<?php
/**
 * User: @lixu
 * Date: 2019-03-20
 * Time: 11:22
 */

namespace Biz\module\Search;

use Doraemon\pockets\config\IniConfig;

abstract class SearchAbstruct
{
    const CONFIG_FILE = 'es_mod';
    const TYPE_GOODS = null;

    abstract public static function save($goodsInfo);

    public static function getBasicUrl()
    {
        $config = IniConfig::getConfigSelect(self::CONFIG_FILE, static::TYPE_GOODS);
        return $config['host'];
    }

}